<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

Class Init {
	private $CI;
	function settingup(){
		PageUtil::registerVar("javascript",TRUE);
		PageUtil::registerVar("stylesheet",TRUE);
		PageUtil::registerVar("title",TRUE);
		PageUtil::registerVar("keywords",TRUE);
		PageUtil::registerVar("description",TRUE);
    PageUtil::registerVar("javascript_body",TRUE);
	}
	function checkPermission(){
    $this->CI =& get_instance();
    $this->CI->migration->current();
    
		if($this->CI->uri->segment(1) == "admin"){
      if(!$this->CI->ion_auth->is_admin()){
        show_404();
      }
    }

	}

  
}